home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xkw / Pad.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-23  |  2.8 KB  |  79 lines

  1. /* $XConsortium: Pad.h,v 1.5 90/12/19 18:46:00 converse Exp $ */
  2.  
  3. /* Copyright    Massachusetts Institute of Technology    1987, 1988
  4.  *
  5.  * Permission to use, copy, modify, distribute, and sell this software and its
  6.  * documentation for any purpose is hereby granted without fee, provided that
  7.  * the above copyright notice appear in all copies and that both that
  8.  * copyright notice and this permission notice appear in supporting
  9.  * documentation, and that the name of M.I.T. not be used in advertising or
  10.  * publicity pertaining to distribution of the software without specific,
  11.  * written prior permission.  M.I.T. makes no representations about the
  12.  * suitability of this software for any purpose.  It is provided "as is"
  13.  * without express or implied warranty.
  14.  *
  15.  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  16.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
  17.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  18.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  19.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  20.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  21.  *
  22.  */
  23.  
  24. #ifndef _Pad_h
  25. #define _Pad_h
  26.  
  27. /****************************************************************
  28.  *
  29.  * Pad widget
  30.  *
  31.  ****************************************************************/
  32.  
  33. /* Resources:
  34.  
  35.  Name             Class        RepType        Default Value
  36.  ----             -----        -------        -------------
  37.  background         Background        Pixel        XtDefaultBackground
  38.  border             BorderColor    Pixel        XtDefaultForeground
  39.  borderWidth         BorderWidth    Dimension    1
  40.  destroyCallback     Callback        Pointer        NULL
  41.  height             Height        Dimension    0
  42.  mappedWhenManaged   MappedWhenManaged    Boolean        True
  43.  sensitive         Sensitive        Boolean        True
  44.  width             Width        Dimension    0
  45.  x             Position        Position    0
  46.  y             Position        Position    0
  47.  
  48. */
  49.  
  50. /* define any special resource names here that are not in <X11/StringDefs.h> */
  51.  
  52. #define XtNinternalBorderWidth    "internalBorderWidth"
  53. #define XtCInternalBorderWidth    "InternalBorderWidth"
  54. #define XtNnumRows    "numRows"
  55. #define XtCNumRows    "NumRows"
  56. #define XtNnumCols    "numCols"
  57. #define XtCNumCols    "NumCols"
  58.  
  59. /* declare the class constant */
  60.  
  61. extern WidgetClass padWidgetClass;
  62.  
  63. /* declare class-specific functions */
  64.  
  65. #define XkwPadNormal        0
  66. #define XkwPadInverse        1
  67. #define XkwPadBold        2
  68. #define XkwPadUnderline        4
  69. #define XkwPadBlink        8
  70.  
  71. extern void XkwPadUpdate (/* Widget gw */);
  72. extern void XkwPadString (/* Widget gw, int row, int col, char *string */);
  73. extern void XkwPadClearToEnd (/* Widget gw, int row, int col */);
  74. extern void XkwPadClear (/* Widget gw */);
  75. extern void XkwPadScroll (/* Widget gw, int start_row, int end_row, int dist */);
  76. extern void XkwPadXYToRowCol (/* Widget gw, int x, int y, int *rowp, int *colp */);
  77.  
  78. #endif /* _Pad_h */
  79.